<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use EloquentFilter\Filterable;
class Site extends Model
{
    use Filterable;
    protected $fillable = [
        'title', 'user_id', 'qrcode_link', 'template_color', 'video_link', 'video_title', 'top_image_src', 'top_image_link'
    ];



    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function ads()
    {
        return $this->hasMany(Ad::class);
    }

    public function videos()
    {
        return $this->hasMany(Video::class);
    }
}
